package com.ruoyi.app.controller.product.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.DO.order.OrderRefundDO;
import com.ruoyi.common.entity.DO.product.ProductDO;
import com.ruoyi.common.entity.DO.product.ShopProductAttributeDO;
import com.ruoyi.common.entity.VO.product.CreditProductVO;
import com.ruoyi.common.entity.VO.product.PetrolProductVO;
import com.ruoyi.common.entity.VO.product.RechargeProductVO;
import com.ruoyi.common.entity.VO.shop.ShopProductSearchVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IShopProductAttributeMapper extends BaseMapper<ShopProductAttributeDO> {
    @Select("SELECT attr_name FROM shop_product_attribute WHERE id=#{id} and shop_id=#{shopId} and product_id=#{productId} and is_enable=1 and is_delete=0 LIMIT 1")
    String getAttrName(@Param("id") Long id,@Param("shopId") Long shopId,@Param("productId") Long productId);
}
